package com.arm.service.impl;

import com.arm.module.User;
import com.arm.service.BaseService;
import com.arm.service.LoginService;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils;

/**
 * Create by lujun.chen on 2018/09/29
 */
@Service
public class LoginServiceImpl extends BaseService implements LoginService {


    @Override
    public User getUser(String username, String password) {

        return new User();
    }

    private String getToken(String username) {
        return DigestUtils.md5DigestAsHex((username + System.currentTimeMillis()).getBytes());
    }

}
